#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START gear
# depends: gzip
# depends: hasher
# depends: libshell

unset NIL
rm -rf build/gear
cp -a gear build/
cd build/gear

make -j${NPROC} \
	HELP2MAN1=/bin/true \
	MAN2HTML=/bin/cat \
	$NIL

make -j${NPROC} \
	HELP2MAN1=/bin/true \
	MAN2HTML=/bin/cat \
	install \
	DESTDIR=`pwd`/inst \
	$NIL

rm -rf inst${prefix}/share/man
cd inst
find ${prefix#/} | cpio -pumd "$stage"
cd ../../..
rm -rf build/gear

# RECIPE END gear
